package com.aldobucchi.ds.op
{
	
	import flexunit.framework.Assert;
	import flexunit.framework.TestCase;
	
	import com.aldobucchi.ds.container.zet.IOWSet;
	import com.aldobucchi.ds.container.zet.impl.owSet;
	import com.aldobucchi.utils.IOperator;


	public class ContainerAnyOpTest extends TestCase
	{



		private var currentValue:*;



		
		public function testMisc( ):void
		{
		
			var zet:IOWSet = owSet( [ "a", "b", "c" ] );
			
			var op:IOperator = new ContainerAnyOp( zet, valueHandler, "" );
			
			assertTrue( zet.contains( currentValue ) );
			
			zet.remove( "a" );
			
			zet.remove( "b" );
					
			assertEquals( currentValue, "c" );
		
			zet.clear( );
		
			assertEquals( currentValue, "" );
		
		
		
		}






		private function valueHandler( e:* ):void
		{
		
			currentValue = e;


		
		}


		
	}
}